package net.hn.hnms.biz.indicator.link;

import net.hn.hnms.sys.common.core.constant.ServiceNameConstants;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.sys.system.api.domain.SysDictData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 智呈物联 nzw
 * @date 2022/11/10
 */
@FeignClient(contextId = "DictService", value = ServiceNameConstants.SYSTEM_SERVICE,fallback = DictServiceFallback.class)
@Component
public interface DictService {
    /**
     * 根据字典类型查询字典数据信息
     */
    @GetMapping(value = "/dict/data/type/{dictType}")
    R<List<SysDictData>> dictType(@PathVariable(value = "dictType") String dictType);
}
